Back

Contents

28/02/23 - Meetings & resource directory

Dockerised the package. Some more refactoring.

Objective review.

Debugging CNSRC.

27/02/23 - Resource directory

Refactoring of package structure etc.

24/02/23 - Resource directory

Nested JSON schemas, made form work.

23/02/23 - More RSESs, resource directory

SRCNet demos. Added schemas to resource directory. Added SESRC_XRD_RBD RSE.

22/02/23 - More RSESs

Emailed CERN about Swiss S3 storage bucket credentials.

Added SESRC xrootd but having some issues with operations taking an age with gfal (e.g. ls of a missing file).

Helped CNSRC diagnose issue with certificates + NFS (nfsv4 needs kernel >= 5.9).

21/02/23 - Features and resource directory

Same as yesterday.

20/02/23 - Features and resource directory

Created metadata feature.

Started looking at creating an OIDC resource directory tool to hold e.g. provider emails, storage, SRM etc.

17/02/23 - Grafana visualisations

Number of issues with monitoring, e.g. failed transfers are repeated, skewing % success numbers.

Looked at trying to append scripted fields to data being indexed. Can either do this with runtime fields (calculated at query time) or make them indexable when a document is inserted with the following index mapping:

{
    "mappings": {
        "properties": {
            "day_of_week": {
                "type": "keyword",
                "script": {
                    "source": "emit(doc['created_at'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))",
                    "lang": "painless"
                },
                "index": false
            },
            "created_at": {
                "type": "date"
            },
            "event_type": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                    }
                }
            },
            "id": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                    }
                }
            },
            "payload": {
                "properties": {
                    "account": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "activity": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "bytes": {
                        "type": "long"
                    },
                    "checksum-adler": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "checksum-md5": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "child_name": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "child_scope": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "child_type": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "childname": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "childscope": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "childtype": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "created_at": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "dataset": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "datasetScope": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "did_type": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "dst-rse": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "dst-rse-id": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "dst-type": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "dst-url": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "duration": {
                        "type": "long"
                    },
                    "expired_at": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "external-host": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "external-id": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "file-size": {
                        "type": "long"
                    },
                    "name": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "previous-request-id": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "protocol": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "queued_at": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "reason": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "request-id": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "request-type": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "retry-count": {
                        "type": "long"
                    },
                    "rse": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "rule-id": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "scope": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "src-rse": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "src-rse-id": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "src-type": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "src-url": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "started_at": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "state": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "submitted_at": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "tool-id": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "transfer-endpoint": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "transfer-id": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "transfer-link": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "transfer_link": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "transferred_at": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    },
                    "url": {
                        "type": "text",
                        "fields": {
                            "keyword": {
                                "type": "keyword",
                                "ignore_above": 256
                            }
                        }
                    }
                }
            },
            "services": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                    }
                }
            }
        }
    }
}

Either way, you can't get them out of Grafana as they are require:

{
  "fields": [
    "created_at",
    "day_of_week"
  ]
}

in the _search body, which isn't achievable with Lucene.

Aside: can retrieve the latest doc via _search with:

{
   "size": 1,
   "sort": { "created_at": "desc"},
   "query": {
      "match_all": {}
   }
}

16/02/23 - Demo

Demo, Rucio meeting. Integrated CASRC after some initial auth/checksum issues.

Config like:

$ grep md5  /etc/xrootd/xrootd-rse-rucio.cfg
xrootd.chksum max 2 md5 adler32 crc32

Here are the token bits:

$ cat /etc/xrootd/xrootd-rse-rucio.cfg
...
# <a name="-10" class="markdown-link" id="-10">Setup Auth</a>
acc.authdb /etc/xrootd/Authfile

# <a name="-11" class="markdown-link" id="-11">Token Auth</a>
ofs.authlib ++ /usr/lib64/libXrdAccSciTokens.so config=/etc/xrootd/scitokens.cfg
ofs.authorize 
and the scitokens config:
$ cat /etc/xrootd/scitokens.cfg 
[Global]
onmissing = passthrough

[Issuer ESCAPE] 
issuer = https://iam-escape.cloud.cnaf.infn.it/
base_path = /data/
map_subject = False 
default_user = <some user>
$ cat /etc/xrootd/Authfile 
g /escape/ska /data/ a

15/02/23 - Demo prep (DaCHS, SDC3a)

14/02/23 - Demo prep (DaCHS, SDC3a)

13/02/23 - Demo prep (DaCHS, SDC3a)

10/02/23 - Service mesh

Trying to get SM to work on k3s clusters.

09/02/23 - Sick

08/02/23 - DaCHS pres

Writing slides for DaCHS pres.

07/02/23 - Service Mesh

Looking over SM issues (not able to deploy machines with Rancher).

06/02/23 - SDC3a slide

Creating SDC3a transfer slide.

03/02/23 - Meetings

DaCHS knowledge share.

Objectives meetings.

02/02/23 - Admin, DaCHS

Finished writing up README, glossed over notes for tomorrow.

Fixed issue with docker registry certificates on rucio cluster

Looked at objectives.

01/02/23 - DaCHS

Metadata roadmapping.

Got DaCHS to import data from external table & database connection.


Top